feat(flatpak-builder): Allow configurable build/repo/state dirs#237
Merged
bilelmoussaoui merged 5 commits intoflatpak:masterfrom Dec 29, 2025
Merged
feat(flatpak-builder): Allow configurable build/repo/state dirs#237bilelmoussaoui merged 5 commits intoflatpak:masterfrom
bilelmoussaoui merged 5 commits intoflatpak:masterfrom
Conversation
Previously, the flatpak-builder action used hardcoded directories for the build output, local repository, and build state. This change introduces new input parameters to make these directories configurable: - 'build-dir': Specifies the directory for the application build output. - 'repo-name': Specifies the directory for the flatpak repository. - 'state-dir': Specifies the directory to store the build cache. This flexibility is crucial for environments like GitHub Actions, where default working directories might have limited space. By allowing users to specify paths, they can leverage volume mountpoints (e.g., /mnt) that offer more disk space, preventing "running out of space" errors during the build process. Signed-off-by: Zeglius <33781398+Zeglius@users.noreply.github.com>
Contributor
Author
|
An example of use would be: jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
options: --privileged
volumes:
- /mnt/flatpak_workflow:/mnt/flatpak_workflow
steps:
- uses: actions/checkout@v4
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: palette.flatpak
manifest-path: org.gnome.zbrown.Palette.yml
cache-key: flatpak-builder-${{ github.sha }}
build-dir: /mnt/flatpak_workflow/build-dir
repo-name: /mnt/flatpak_workflow/repo
state-dir: /mnt/flatpak_workflow/.flatpak-builder |
Signed-off-by: Zeglius <33781398+Zeglius@users.noreply.github.com>
bilelmoussaoui
approved these changes
Dec 28, 2025
bbhtt
reviewed
Dec 29, 2025
Signed-off-by: Zeglius <33781398+Zeglius@users.noreply.github.com>
Signed-off-by: Zeglius <33781398+Zeglius@users.noreply.github.com>
Signed-off-by: Zeglius <33781398+Zeglius@users.noreply.github.com>
b880ab7 to
fde823c
Compare
Member
|
When i tested your patch at bilelmoussaoui/ashpd#322 i get the same limited space error (see https://github.com/bilelmoussaoui/ashpd/actions/runs/20575989270), any clues? |
Contributor
Author
You forgot to mount a host volume, should be like this: The point of this PR was to allow using the hosts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, the flatpak-builder action used hardcoded directories for the build output, local repository, and build state. This change introduces new input parameters to make these directories configurable:
This flexibility is crucial for environments like GitHub Actions, where default working directories might have limited space. By allowing users to specify paths, they can leverage volume mountpoints (e.g., /mnt) that offer more disk space, preventing "running out of space" errors during the build process.